from django.contrib import admin
from CarManage.models import *

# Register your models here.


class CarAdmin(admin.ModelAdmin):
    list_display = ['CarID', 'ManagerID', 'CarType', 'CarLifeSpan', 'StopServeDate', 'StopUseReason', 'UsingDate', 'CarCategory',
                    'WorkingState']


class RepairAdmin(admin.ModelAdmin):
    list_display = ['Car', 'StartTime', "Reason", 'EndTime']


admin.site.register(Car, CarAdmin)
admin.site.register(Repair, RepairAdmin)
